<template>
  <div class="child">
    <h2>我是Child组件</h2>
    <GrandChild/>
  </div>
</template>

<script>
  import GrandChild from './GrandChild.vue'
  export default {
    name:'Child',
    components:{GrandChild},
    mounted() {
      console.log('Child(子)-mounted')
    },
  }
</script>

<style>
  .child {
    background-color: skyblue;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
</style>